//

#include <WinSock2.h>
#include <windows.h>
#include <iostream>
#include <boost/regex.hpp>
#include "../src/yet/Thread.h"
#include "../src/yet/Event.h"
#include "../src/yet/win32.h"
#include "../src/yet/Unicode.h"
#include "../src/yet/Handler.h"
#include "../src/yet/AutoLock.h"
#include "../src/yet/Timer.h"
#include "../src/yet/WinLoop.h"
#include "../src/yet/HWNDHandler.h"
#include "../src/yet/net/TcpClient.h"
#include "../src/ftp/EchoParse.h"
#include "../src/yet/SyncQueue.h"
#include "../src/yet/StreamLog.h"
#include "../src/ftp/FtpTest.h"
#include "../src/ftp/Packet.h"
#include <boost/regex.hpp>
#include "../src/ftp/FtpContext.h"

using namespace std;
using namespace yet;
using namespace ftp;

void test() {
	ftptest();

}
//drwxr-xr-x 1 ftp ftp              0 Dec 28 23:46 a
//-rw-r--r-- 1 ftp ftp            161 Oct 30  2012 Main.java
void test2() {

}
//257 "/home/yet" is current directory.
void test3() {
	string line = "257 \"/home/yet\" is current directory.";
	boost::regex reg("\\d+\\s+\\\"([^\\\"]+)\\\"");
	boost::smatch mat;
	if (boost::regex_search(line, mat, reg)) {
		cout << mat[1]<<endl;
	}
}
int main(int argc, char* argv[]) {
	AutoSockLib lib;
	test();
//	test3();
	cout << "Main End" << endl;
	return 0;
}

